<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="zh-CN">
  
  <head>
    
    <%@ include file="/WEB-INF/include/meta.jsp"%>
    <%@ include file="/WEB-INF/include/css.jsp"%>
    
  </head>
  <!-- end header -->
  <body>
    <div class="page-group">
      <div class="page page-current">
        
        <header class="bar bar-nav fs-header-small">
          <a href="${ctx.host}/profile/course-schedules/${courseSchedule.id}" class="button button-link button-nav pull-left"><span class="icon icon-left"></span></a>
          <h1 class="title">
            <strong>取消预约</strong>
          </h1>
        </header>

        <div class="content">
          
          <form action="${ctx.host}/profile/course-schedules/${courseSchedule.id}/cancel" method="POST">
            
            <input type="hidden" name="_method" value="PATCH">
            <p class="list-block text-center" style="padding: 1rem 0;">
              是否确认取消预约此次课程。
            </p>
            
            <div class="content-block">
              <p><a href="javascript:void(0);" data-shift-submit="true" class="button button-big ft-button" style="background-color: #65C1B5; border-color: #65C1B5; color: #FFF; font-weight: bolder;">确认取消 </a></p>
            </div>
          
          </form>
          
        </div>
        
      </div>
    </div>
    
    <%@ include file="/WEB-INF/include/script.jsp"%>
    <d:resource type="script" root="${ctx.resource}/build" src="js/page/course/cancel.js" />
    <script type="text/javascript">
      require(['page/course/cancel'], function(page) {
        page.init({
          roundId: '${courseSchedule.courseRound.id}'
        })
      })
    </script>
    
  </body>
</html>